home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
001-010
/
amok10
/
speech
/
speech.def
< prev
next >
Wrap
Text File
|
1993-11-04
|
2KB
|
63 lines
(*********************************************************************
*
* :Program. Speech.def
* :Author. Michael Frieß
* :Address. Kernerstr. 22a
* :Address. 7000 Stuttgart 1
* :shortcut. [MiF]
* :Version. 1.0
* :Date. 01.11.88
* :Copyright. PD
* :Language. Modula-II
* :Translator. M2Amiga
* :Contents. Routinen zur Sprachunterstützung (auch Deutsch!)
*
*********************************************************************)
DEFINITION MODULE Speech;
TYPE language = (German, English, French);
(* :note.English = supported by operating system
:note.German = implemented (as good as possible)
:note.French = not implemented
*)
voice = RECORD
rate, pitch, mode,
sex, volume, sampFreq : CARDINAL
END;
VAR DefaultVoice: voice;
PROCEDURE OpenNarrator (m: BOOLEAN);
(* :input.v = voice characteristics, e.g. DefaultVoice
:input.m = TRUE, you want read mouth informations from
:input. narrator.
:semantic.Narrator device is opened for further use.
*)
PROCEDURE CloseNarrator;
(* :semantic.Closes the narrator device. Automatic closing
:semantic.is done at end of program.
*)
PROCEDURE SayPhonemes (p: ARRAY OF CHAR; v: voice);
(* :input.p = string of phonemes
:semantic.The Narrator device only speaks correct phonemes!
*)
PROCEDURE Translate (in: ARRAY OF CHAR; VAR out: ARRAY OF CHAR;
Language: language) : INTEGER;
(* :input.in = string of characters to be translated
:output.out = string of translated phonemes
:result.success of translation
:result. 0 = successful
:result. -1 = notUsed (the specific language translator
:result. isn´t yet implementated.
:result. -2 = noMem (not enough memory)
:result. -4 = makeBad
:semantic.translates characters into phonemes
*)
END Speech.